package composite;

import lombok.Data;

@Data
public abstract class Component {

    protected String name;

    public Component () {

    }

    public Component (String name) {
        this.name = name;
    }

    public abstract void add(Component c);

    public abstract void remove(Component c);

    public abstract void display(int depth);

}
